package com.ruoqing.core.dto.auth;

import com.ruoqing.core.dto.BaseResponse;
import lombok.Data;

/**
	* @author YaoXian
	* @title: AuthDto
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 鉴权结果Dto数据传输对象
	* @date 2020-12-18 15:02
	*/
@Data
public class AuthDto extends BaseResponse {
		
		private TokenDto tokenDto;
		
		public static AuthDto buildAuthDto(String status,String errorMsg){
				AuthDto authDto = new AuthDto();
				authDto.setStatus(status);
				authDto.setMessage(errorMsg);
				return authDto;
		}
		
		public static AuthDto buildAuthDto(String status,TokenDto tokenDto){
				AuthDto authDto = new AuthDto();
				authDto.setStatus(status);
				authDto.setTokenDto(tokenDto);
				return authDto;
		}
}
